package com.gtw.modules.sys.service.impl;

import com.gtw.modules.dao.TbSearchHotDao;
import com.gtw.modules.entity.TbSearchHot;
import com.gtw.modules.sys.service.SysTbSearchHotService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by wuye on 2018/3/14.
 */
@Service
public class SysTbSearchHotServiceImpl implements SysTbSearchHotService {

    @Autowired
    private TbSearchHotDao searchHotDao;

    @Override
    public TbSearchHot queryObject(Integer id){
        return searchHotDao.queryObject(id);
    }

    @Override
    public List<TbSearchHot> queryList(Map<String, Object> map){
        return searchHotDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map){
        return searchHotDao.queryTotal(map);
    }

    @Override
    public void save(TbSearchHot searchHot){
        searchHotDao.save(searchHot);
    }

    @Override
    public void update(TbSearchHot searchHot){
        searchHotDao.update(searchHot);
    }

    @Override
    public void delete(Integer id){
        searchHotDao.delete(id);
    }

    @Override
    public void deleteBatch(Integer[] ids){
        searchHotDao.deleteBatch(ids);
    }

    @Override
    public List<TbSearchHot> queryAll() {
        return searchHotDao.queryAll();
    }
}
